package com.heima.model.comment.pojos;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document("comment")
public class Comment {
    private String id;  //评论id
    private Long authorId; //作者id
    private String authorName;  //作者名字
    private Integer channelId; //频道id
    private Integer userId;  //用户id
    @Indexed
    private String articleId;  //文章id
    private Integer type;  //类型 不知道是啥
    private String content; //评论
    private String image;  //图片  没这个功能
    private Integer likes;  //点赞数
    private Integer reply;  //回复数
    private Byte flag;   //不知道是啥
    private String longitude; //经度
    private String latitude;  //纬度
    private String address;  //地址
    private String ord;    //不知道是啥  可能是排序
    private Long createdTime;  //创建时间
    private Long updatedTime;  //修改时间
    private Integer operation;  //0 点赞 1取消
    private String parentId; //一级评论id
}
